import React from 'react';
import { Button } from 'antd'
import { connect } from 'react-redux'
import './index.less'

class Nav11 extends React.Component {
    render() {
        const { getData3, clickBtn } = this.props
        return (
            <div>
                nav1-1
                {
                    getData3.map((item, index) => <p key={index}>{item}</p>)
                }
                <Button onClick={() => clickBtn({ type: 'getData3', data: [324, 543, 778] })}>get-data3</Button>
            </div>
        );
    }
}
const mapStateToProps = (state) => Object.assign({}, state)
const mapDispatchToProps = (dispatch) => {
    return {
        clickBtn: (val) => dispatch(val)
    }
}
Nav11 = connect(mapStateToProps, mapDispatchToProps)(Nav11)
export default Nav11
